package com.xiaobai.nacosgateway.config;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "spike-provider")
public interface UserService {

    @PostMapping("/oauth2/getByToken")
    ApiResponse<User> getToken(@RequestParam("access_token") String access_token);
}
